package com.aspose.cells;

import java.util.Iterator;

class zip implements zagb {
   private zif b;
   private com.aspose.cells.b.a.b.zg c;
   private Color d;
   private zalv e;
   private boolean f;
   private boolean g;
   private boolean h;
   private boolean i;
   com.aspose.cells.b.a.b.zp a;
   private zaky j;
   private com.aspose.cells.b.a.b.zs k = com.aspose.cells.b.a.b.zs.a();
   private int l = 0;
   private int m = 0;
   private boolean n = false;

   zip(zif var1) {
      this.b = var1;
      this.d = Color.getBlack();
      this.e = new zalv(var1);
      this.f = true;
      this.g = true;
      this.h = true;
      this.i = true;
      this.a = com.aspose.cells.b.a.b.zp.a();
      this.j = new zaky(var1);
   }

   zif a() {
      return this.b;
   }

   public com.aspose.cells.b.a.b.zg b() {
      if (this.c == null) {
         this.c = zbuk.a(this.b.Z());
         this.a(this.b.aa());
      }

      return this.c;
   }

   public void a(com.aspose.cells.b.a.b.zg var1) {
      this.c = var1;
   }

   public Color c() {
      return this.d;
   }

   public void a(Color var1) {
      this.d = var1;
   }

   zalv d() {
      return this.e;
   }

   public zahf e() {
      return this.e;
   }

   public boolean f() {
      return this.f;
   }

   public void a(boolean var1) {
      this.f = var1;
   }

   public boolean g() {
      return this.g;
   }

   public void b(boolean var1) {
      this.g = var1;
   }

   public boolean h() {
      return this.h;
   }

   public void c(boolean var1) {
      this.h = var1;
   }

   public boolean i() {
      return this.i;
   }

   public void d(boolean var1) {
      this.i = var1;
   }

   int j() {
      boolean var1 = false;
      if (this.b() != null) {
         int var2 = zbuk.c((double)(this.p() * 0.25F));
         return var2 < 4 ? 4 : var2;
      } else {
         return 0;
      }
   }

   int k() {
      boolean var1 = false;
      if (this.b() != null) {
         int var2 = zbuk.c((double)(this.p() * 0.2F));
         return var2 < 4 ? 4 : var2;
      } else {
         return 0;
      }
   }

   int l() {
      boolean var1 = false;
      if (this.b() != null) {
         int var2 = zbuk.c((double)(this.p() * 0.2F));
         return var2;
      } else {
         return 0;
      }
   }

   int m() {
      zbcr var1 = this.b.z();
      boolean var2 = false;
      int var3;
      if (var1.p()) {
         var3 = this.b.x().n();
      } else {
         var3 = this.b.x().m();
      }

      return var3;
   }

   int n() {
      boolean var1 = false;
      float var2 = 0.0F;
      if (this.b().h() <= 6.0F) {
         var2 = 0.6F;
      } else {
         var2 = 0.465F;
      }

      if (this.b() != null) {
         int var3 = zbuk.c((double)(this.p() * var2));
         return var3 < 3 ? 3 : var3;
      } else {
         return 0;
      }
   }

   zaky o() {
      return this.j;
   }

   float p() {
      return (float)zbuk.a((double)this.a().ap().a().a(this.b()));
   }

   com.aspose.cells.b.a.b.zs q() {
      return this.k;
   }

   void a(com.aspose.cells.b.a.b.zs var1) {
      this.k = var1;
   }

   int r() {
      return this.l;
   }

   void a(int var1) {
      this.l = var1;
   }

   int s() {
      return this.m;
   }

   void b(int var1) {
      this.m = var1;
   }

   protected void finalize() throws Exception {
      this.e(false);
   }

   public void t() {
      this.e(true);
      com.aspose.cells.b.a.zg.a(this);
   }

   protected void e(boolean var1) {
      if (!this.n) {
         if (var1) {
            if (this.c != null) {
               this.c.n();
            }

            if (this.j != null) {
               Iterator var2 = this.j.iterator();

               while(var2.hasNext()) {
                  zala var3 = (zala)var2.next();
                  var3.k();
               }
            }
         }

         this.n = true;
      }

   }
}
